package com.ano.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * 路由跳转的controller
 */
@Controller
public class RouterContorller {

    @RequestMapping("user/registerPage")
    public String toRegister(){
        System.out.println("访问register");
        return "/register.html";
    }

    @RequestMapping("user/loginPage")
    public String toLogin(){
        System.out.println("访问login");
        return "/login.html";
    }

    @RequestMapping("ctbucmain")
    public String toMain(){
        System.out.println("访问主页面");
        return "/ctbuc.html";
    }


}
